package mysql

import "e_mall_server/models"

/**
 * @Author: zhaobin
 * @Description TODO
 * @Date: 2022-05-10 20:45
 */

// GetGoodsColorList 获取颜色列表接口
func GetGoodsColorList() ([]models.GoodsColor, error) {
	var goodsColorList []models.GoodsColor
	if err := db.Find(&goodsColorList).Error; err != nil {
		return nil, err
	}
	return goodsColorList, nil
}
